package cn.edu.hbsi.domain;

import java.util.List;

public class User
{
    private Integer uId;
    private String uName;
    private String uAddress;
    private List<Orders> orders;

    public User() {
    }

    public User(String uname, String uAddress) {
        uName = uname;
        this.uAddress = uAddress;
    }

    public User(String uname, String uAddress, List<Orders> orders) {
        uName = uname;
        this.uAddress = uAddress;
        this.orders = orders;
    }

    public User(Integer uId, String uname, String uAddress, List<Orders> orders) {
        this.uId = uId;
        uName = uname;
        this.uAddress = uAddress;
        this.orders = orders;
    }

    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getUname() {
        return uName;
    }

    public void setUname(String uname) {
        uName = uname;
    }

    public String getuAddress() {
        return uAddress;
    }

    public void setuAddress(String uAddress) {
        this.uAddress = uAddress;
    }

    public List<Orders> getOrders() {
        return orders;
    }

    public void setOrders(List<Orders> orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", Uname='" + uName + '\'' +
                ", uAddress='" + uAddress + '\'' +
                ", orders=" + orders +
                '}';
    }
}
